package com.gu.myviewmodel.repo

import com.gu.myviewmodel.services.Car
import com.gu.myviewmodel.services.NetworkService
import javax.inject.Inject
import javax.inject.Singleton


class RemoteRepo @Inject constructor(private val service: NetworkService) : BaseRepo<Car>() {

    override suspend fun loadData(): List<Car> {
        return service.allCars()
    }

    override suspend fun isEmpty(): Boolean {
        return true
    }

    override suspend fun clear() {
    }

    override fun repoTag(): String = "RemoteRepo"

}